﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Manage.aspx.cs" Inherits="CustomerContactSystem.WebForms.Enquiries.Tags.Manage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h1>Enquiry: <asp:hyperlink ID="EnquiryIdCaption" runat="server"></asp:hyperlink></h1>
<h2>Manage Tags</h2>

<fieldset>
    <legend>Add Tag</legend>
    
    <asp:Label ID="TagNameCaption" runat="server" Text="New Tag (one only):" AssociatedControlID="TagName"></asp:Label>
    <asp:TextBox ID="TagName" runat="server"></asp:TextBox>

    <asp:Label ID="TagsCaption" runat="server" Text="Add Existing Tag:" AssociatedControlID="Tags"></asp:Label>
    <asp:DropDownList ID="Tags" runat="server"></asp:DropDownList>
    
    <asp:Button ID="AddSelectedTag" runat="server" Text="Add" CssClass="submit" OnClick="AddSelectedTagClick" />
</fieldset>

<h2>Enquiry Currently Tagged With:</h2>
<asp:Repeater ID="TagsList" runat="server" OnItemDataBound="TagsListItemDataBound">
<HeaderTemplate>
<ul class="menu-vertical">
</HeaderTemplate>
<ItemTemplate>
    <li>
        <%#Eval("TagName") %> <asp:HyperLink ID="RemoveLink" runat="server" Text="Remove"></asp:HyperLink>
    </li>
</ItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:Repeater>
</asp:Content>
